package com.wzh.example.inheritance;

/**
 * @Author zh wang
 * @Create 2025/4/27 20:45
 */
public class Son extends Father implements InterfaceDemo{
    private final char[] value = new char[16];
    public int num = 2;
    public static int static_num = 2;
    public final int final_num = 2;
    public final static int final_static_num = 2;

    public int getNum(){
        return this.num;
    }


    // 重写的方法为 final
    //public final void final_test(){
    //    System.out.println("son final_static_test");
    //}
    //public final static void final_static_test(){
    //    System.out.println("son final_static_static_test");
    //}
    public static void static_test(){
        System.out.println("son static_test");
    }

    @Override
    public void test(){
        System.out.println("Son test");
    }

}
